import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { Geolocation } from '@ionic-native/geolocation';
import {AboutPage} from "../pages/about/about";
import {ActivityAddPage} from "../pages/activity/add/add";
import {ActivityPage} from "../pages/activity/activity";
import {MapCenterPage} from "../pages/map/center/center";
import {MapNavigationPage} from "../pages/map/navigation/navigation";
import {UserPage} from "../pages/user/user";
import {MemberPage} from "../pages/member/member";
import {LoginPage} from "../pages/login/login";
import {ListPage} from "../pages/list/list";
import {HttpClient} from "../common/model/http-client";
import {HttpModule} from "@angular/http";
import {Toast} from "../common/model/util";
import {SitePage} from "../pages/activity/site/site";
import {WebSocket} from "../common/model/web-socket";

@NgModule({
  declarations: [
    MyApp,
    HomePage,
    ListPage,
    AboutPage,
    ActivityAddPage,
    ActivityPage,
    MapCenterPage,
    MapNavigationPage,
    UserPage,
    MemberPage,
    LoginPage,
    SitePage
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp),
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    ListPage,
    AboutPage,
    ActivityAddPage,
    ActivityPage,
    MapCenterPage,
    MapNavigationPage,
    UserPage,
    MemberPage,
    LoginPage,
    SitePage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    HttpClient,
    WebSocket,
    Toast,
    Geolocation,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}
